package com.example.easybuy.service;

import com.example.easybuy.entity.Address;
import com.example.easybuy.entity.CarDetail;
import com.example.easybuy.entity.Order;
import com.example.easybuy.entity.OrderDetail;
import com.example.easybuy.util.AjaxResult;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface OrderService {
    PageInfo<Order> orderByPage(Map<String,Object> map);

    List<OrderDetail> selectOrderDetail(Map<String,Object> map);

    boolean updateOrder(Map<String,Object> map) throws Exception;

    boolean delOrder(Map<String,Object> map);

    AjaxResult addOrder(List<CarDetail> list, String loginName, int userId, Address address);
    Order getOrder(Map<String,Object> map);

}
